package com.qianfeng.libra.cowshop.app.models;

import org.json.JSONException;
import org.json.JSONObject;

import java.io.Serializable;

/**
 * Created by Libra丶ZW on 2015/3/24 0024.
 */
public class SaleProduct implements Serializable {
    private String Title;
    private String SmallImageSN;
    private String QHMProductSN;
    private String ProductHtml;
    private int Price;
    private int Stock;
    private String WebSiteLogo;
    private String WebSitName;
    private String Share;
    private String AndroidUrl;
    private String IOSUrl;
    private int LimitSaleNum;
    private int EbbPrice;
    private int ShortPrice;
    private int IsSale;


    public void parseJSON(JSONObject jsonObject) {
        if (jsonObject != null) {
            try {
                Title = jsonObject.getString("Title");
                SmallImageSN = jsonObject.getString("SmallImageSN");
                QHMProductSN = jsonObject.getString("QHMProductSN");
                ProductHtml = jsonObject.getString("ProductHtml");
                SmallImageSN = jsonObject.getString("SmallImageSN");
                WebSiteLogo = jsonObject.getString("WebSiteLogo");
                WebSitName = jsonObject.getString("WebSitName");
                Share = jsonObject.getString("Share");
                AndroidUrl = jsonObject.getString("AndroidUrl");
                IOSUrl = jsonObject.getString("IOSUrl");

                Price = jsonObject.getInt("Price");
                Stock = jsonObject.getInt("Stock");
                LimitSaleNum = jsonObject.getInt("LimitSaleNum");
                EbbPrice = jsonObject.getInt("EbbPrice");
                ShortPrice = jsonObject.getInt("ShortPrice");
                IsSale = jsonObject.getInt("IsSale");

            } catch (JSONException e) {
                e.printStackTrace();
            }
        }
    }


    public String getAndroidUrl() {
        return AndroidUrl;
    }

    public void setAndroidUrl(String androidUrl) {
        AndroidUrl = androidUrl;
    }

    public int getEbbPrice() {
        return EbbPrice;
    }

    public void setEbbPrice(int ebbPrice) {
        EbbPrice = ebbPrice;
    }

    public String getIOSUrl() {
        return IOSUrl;
    }

    public void setIOSUrl(String IOSUrl) {
        this.IOSUrl = IOSUrl;
    }

    public int getIsSale() {
        return IsSale;
    }

    public void setIsSale(int isSale) {
        IsSale = isSale;
    }

    public int getLimitSaleNum() {
        return LimitSaleNum;
    }

    public void setLimitSaleNum(int limitSaleNum) {
        LimitSaleNum = limitSaleNum;
    }

    public int getPrice() {
        return Price;
    }

    public void setPrice(int price) {
        Price = price;
    }

    public String getProductHtml() {
        return ProductHtml;
    }

    public void setProductHtml(String productHtml) {
        ProductHtml = productHtml;
    }

    public String getQHMProductSN() {
        return QHMProductSN;
    }

    public void setQHMProductSN(String QHMProductSN) {
        this.QHMProductSN = QHMProductSN;
    }

    public String getShare() {
        return Share;
    }

    public void setShare(String share) {
        Share = share;
    }

    public int getShortPrice() {
        return ShortPrice;
    }

    public void setShortPrice(int shortPrice) {
        ShortPrice = shortPrice;
    }

    public String getSmallImageSN() {
        return SmallImageSN;
    }

    public void setSmallImageSN(String smallImageSN) {
        SmallImageSN = smallImageSN;
    }

    public int getStock() {
        return Stock;
    }

    public void setStock(int stock) {
        Stock = stock;
    }

    public String getTitle() {
        return Title;
    }

    public void setTitle(String title) {
        Title = title;
    }

    public String getWebSiteLogo() {
        return WebSiteLogo;
    }

    public void setWebSiteLogo(String webSiteLogo) {
        WebSiteLogo = webSiteLogo;
    }

    public String getWebSitName() {
        return WebSitName;
    }

    public void setWebSitName(String webSitName) {
        WebSitName = webSitName;
    }
}
